Skip to content

test(app-shell): load the lazy object list at collection in the disabled-package deep-link suite - #34231

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-1zve7w
Nov 16, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-1zve7w

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Part of #33581

Clause-②: no — a test's load order; no surface added or changed
Metadata-protocol: none

维护者速读

What changes

ui/packages/app-shell/src/console/__tests__/AppContent.disabledPackageDeepLink-13052.test.tsx imports ../../views/ObjectView (and @objectstack/lint, which that module reaches) at module scope, beside AppContent, with a comment saying why. That is ui/AGENTS.md's rule for an assertion behind a React.lazy boundary, spelled as AppContent.dashboardRouteReads-28784.test.tsx already spells it for DashboardView.

Why

Case (b) CONTROL: 404 RESOURCE_NOT_FOUND still draws "Object Not Found" timed out in queue build 43779205122 and on #34180's synced head (job 133021475780). Both contain 571cf9082a (#34176).

Measured on this box (verbose reporter, the file alone under os-verify-lock, @object-ui/app-shell^... root deps built in both trees):

tree (b)
571cf9082a^ (44fc2fc4), 3 runs passes; 691 ms on run 1
main (aab8b318), 3 runs times out at ~1012 ms every run
main + module-scope import '@object-ui/plugin-view' 630 ms
main + module-scope import '../../views/ObjectView' (this PR), 3 runs 41 / 46 / 42 ms

So the whole of (b)'s time is the cold load of the lazy route's modules. Before #34176 it was already 691 ms of a 1000 ms budget: ObjectView's own graph, with plugin-view held by AppContent's eager import. #34176 moved plugin-view's entry graph out of AppContent's imports and into that first lazy load. The assertion itself takes about 40 ms.

Product. (a) OBJECT_PACKAGE_DISABLED is drawn by AppContent itself. (b) RESOURCE_NOT_FOUND is drawn inside the lazy ObjectView route element, and has been since #33677. In the console, preloadAppRouteChunk starts that route chunk's import as soon as AppContent knows the route, in parallel with the route's metadata reads (objectui#12980). The plugin-view chunk is a static dependency of that chunk and is fetched with it, so the not-found state does not queue behind an extra serial load. No product change.

Tests

  • The file: 18/18 on three runs.
  • Ablation (scripts/ablation-replace.mjs): import '../../views/ObjectView'; → /* ablated */ reproduces the CI failure: (b) ✗ at 1016 ms, Unable to find an element by: [data-testid="object-not-found"]. Restored: blob == HEAD, git diff HEAD empty.
  • No forced edits to other tests.

Verification

  • dispatch-gates.mjs --commands on head 8280ad42: 27 commands, every one exit 0; --ran: 27 derived famil(ies) accounted for — 27 run, 0 NOT-MEASURED. Among them check:test-source-alias (the added @objectstack/lint import), check:type-check-debt and pnpm --dir ui exec vitest run scripts/.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmT5bCDp1MDcReXVCop

…led-package deep-link suite

The plain "Object Not Found" is drawn inside the lazy ObjectView route element;
its cold load now also carries plugin-view's entry and outgrew waitFor's
budget. Loaded at module scope, as the lazy-boundary rule and the dashboard
route suite's precedent do.

Claude-Session: https://claude.ai/code/session_01ADHkmT5bCDp1MDcReXVCop
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

skip-changeset · head 8280ad42 · 2026-11-16T01:47Z

This PR changes one test file (AppContent.disabledPackageDeepLink-13052.test.tsx, +7 lines) and no .changeset row. Nothing is released: no package source, no export and no published file changes. The label is the right disposition, and Check Changeset re-reads it.

@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 16, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

Merge-only sync · 2026-11-16T02:05Z

Check Changeset on 8280ad42 is the opened run's red, from before skip-changeset was applied. The labeled run skips the job and does not clear that red, and the relay does not re-run pr-automation.yml. The seat therefore merged main into the branch (pr_update_branch, no other change), so the new head's run reads the label. The PR's own diff is unchanged: one test file, +7 lines. ACCEPT follows on the green head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

席位核对

Verdict: ACCEPT · head 0074d595 · 2026-11-16T02:25Z

  1. Shape. Draft → main, Part of #33581. One file, ui/packages/app-shell/src/console/__tests__/AppContent.disabledPackageDeepLink-13052.test.tsx (+7). The merge-only sync carries no other change. skip-changeset: nothing is released.
  2. Root cause, measured. The file was run alone on each tree. 571cf9082a^: (b) took 691 ms. main: three runs, each timing out at ~1012 ms. main plus a module-scope preload of plugin-view: 630 ms. main plus a preload of ObjectView: 41–46 ms. The extra time is the test environment's cold load of the lazy ObjectView route, including the plugin-view entry graph that perf(console): plugin-form and plugin-view helpers come from side-effect-free /core subpaths #34176 moved into that lazy load. The product is unchanged: (b)'s "Object Not Found" has been drawn inside the lazy ObjectView since perf(console): the first load stops downloading the object list, the record view and the list view package #33677, and AppContent preloads that route chunk in parallel with the metadata read.
  3. Fix. ObjectView and @objectstack/lint are imported at module scope, so the cold load is paid at collection and never inside a clocked waitFor. This is ui/AGENTS.md's lazy-boundary rule, as dashboardRouteReads-28784 already does. No timeout is raised and no case is skipped.
  4. Ablation. Without the preload: 1016 ms and no object-not-found, the CI failure reproduced. Restored with an empty diff.
  5. Contract. Clause-②: no — a test-only timing fix; Metadata-protocol: none. No record is owed.
  6. Gates on 0074d595. 51 check runs: 37 success, 14 skipped, none failed. Test UI shards 1–16 are all success, 5/16 and 10/16 included. Locally: 27/27 derived gates exit 0.
  7. K. K = 0 after the sync.
  8. Governed. check-governed-merges --pr 34231: NOT governed.
  9. Landing. This stroke: pr_ready + automerge_enable, under the maintainer's landing approval in the seat thread (2026-11-15T16:10Z, 「批准席位 本班复核通过的 PR 执行 --land」). On MERGED, fix(plugin-detail): a long text formula on the record page wraps instead of being cut to one line #34180, fix(plugin-grid): report a rejected aggregate bulk action as one outcome and refresh the list #34213 and feat(console): a Mobile App page in the account app shows the code that connects the ObjectOS mobile app #34141 are synced, and console first load: plugin-grid, plugin-form and RecordDetailView are still in the eager closure (split from #33293) #33581 goes back to pm:queue with item 2 parked.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 16, 2026 02:25
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit d69cf97 Nov 16, 2026
52 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-1zve7w branch November 16, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants